package com.coco.result;

import lombok.Data;


public enum ResultCode {
    SUCCESS(200,"执行成功"),
    INVALID_PHONE(4001,"手机格式错误"),
    OPERATOR_NOT_FOUND(4002, "运营商不存在"),
    LOCATION_QUERY_FAILED(5001, "归属地查询失败"),
    TIMEOUT_ERROR(5002, "请求超时");
    private final int code;
    private final String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
